Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed minor bug with mkswap in cc_disk_setup.py #143

Merged
merged 4 commits into from Jan 7, 2020

Conversation

andreaf74
Copy link
Contributor

The module cc_disk_setup.py fails when trying to initalize a swap partition with mkswap.
This is because 'lookup_force_flag' returns an empty string (''), which is taken as actual argument when launching mkswap , resulting in an error:

Unexpected error while running command.
Command: ['/usr/sbin/mkswap', '/dev/sdb', '']
Exit code: 1
Reason: -
Stdout:
Stderr: mkswap: invalid block count argument: ''

Preventing swap to work (this can be seen when using vmware hypervisor)

This patch simply remove the empty argument.

Copy link
Collaborator

@igalic igalic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good (and travis agrees)

@blackboxsw
Copy link
Collaborator

Thank you so much for your contribution to cloud-init and for making cloud-init better!

Contributions to cloud-init are governed by a Contributor License Agreement (CLA). Please confirm that you have signed the CLA per our hacking guide and run migrate-lp-user-to-github to associate this github account as someone who has signed the CLA.

@blackboxsw blackboxsw added the CLA not signed The submitter of the PR has not (yet) signed the CLA label Dec 25, 2019
@igalic
Copy link
Collaborator

igalic commented Dec 25, 2019

@blackboxsw, i thought we had a bot for that, i didn't realise you're the bot

@OddBloke OddBloke added CLA signed The submitter of the PR has signed the CLA and removed CLA not signed The submitter of the PR has not (yet) signed the CLA labels Jan 7, 2020
Co-Authored-By: Daniel Watkins <daniel@daniel-watkins.co.uk>
Copy link
Collaborator

@OddBloke OddBloke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA signed The submitter of the PR has signed the CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants